<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar slimScrollDiv ">

        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <img src="${avatar}" class="img-circle" alt="User Image">
            </div>
            <div class="pull-left info">
                <p>${name!}</p>
                <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
            </div>
        </div>

        <!-- search form -->
        <form action="#" method="get" class="sidebar-form">
            <div class="input-group">
                <input type="text" name="q" class="form-control" placeholder="Search...">
                <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
            </div>
        </form>
        <!-- /.search form -->


        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">

            <li class=" treeview">
                <a href="#">
                    <i class="fa fa-dashboard"></i> <span>Dashboard</span>
                    <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                </a>
                <ul class="treeview-menu">
                    <li class="active"><a href="index.html"><i class="fa fa-circle-o"></i> Dashboard v1</a></li>
                    <li><a href="javascript:void(0);"><i class="fa fa-circle-o"></i> Dashboard v2</a></li>
                </ul>
            </li>

            @for(title in menus!){
            @if(tool.isEmpty(title.children)){
            <li class="treeview">
                <a class=" J_menuItem"  href="${ctxPath}${title.url}">
                    <i class="fa ${title.icon}"></i> <span>${title.name}</span>
                    <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                </a>
            </li>
            @}else{

            <li class="treeview">
                <a href="${ctxPath}${title.url}">
                    <i class="fa ${title.icon}"></i> <span>${title.name}</span>
                    <span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>
                </a>
                <ul class="treeview-menu">
                    @for(subTitle in title.children){
                    @if(tool.isEmpty(subTitle.children)){
                    <li>
                        <a class=" J_menuItem"  href="${ctxPath}${subTitle.url}"><i class="fa ${subTitle.icon}"></i> ${subTitle.name}</a>
                    </li>
                    @}else{
                    <li class="treeview">
                        <a class="has-arrow" href="${ctxPath}${subTitle.url}" aria-expanded="false">${subTitle.name}</a>
                        <ul class="treeview-menu">
                            @for(thirdTitle in subTitle.children){
                            <li>
                                <a class="  J_menuItem" href="${ctxPath}${thirdTitle.url}"><i class="fa ${thirdTitle.icon}"></i>${thirdTitle.name}</a>
                            </li>
                            @}
                        </ul>
                    </li>
                    @}
                    @}
                </ul>
            </li>
            @}
            @}
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>


